package com.test;

import com.test.mvc.ImitateSpringMVC;

/**
 * Created by Intellij IDEA.
 * User:   LYX
 * Date:  2023/3/10
 * @author LYX
 */
public class Main {
    static {
        //获得当前类的路径
        String path = Main.class.getResource("").getPath();
        //获得当前类的包名
        String packageName = Main.class.getPackage().getName();
        //传入到MVC的方法中
        ImitateSpringMVC.scanner(path,packageName);
    }

    public static void main(String[] args) {
        ImitateSpringMVC.exec("","");
        ImitateSpringMVC.exec("test","index1");
        ImitateSpringMVC.exec("test","");
        System.out.println("SpringMVC！");
    }


}





















